package com.link2room.rodimus.feign.rodimus;

import com.link2room.common.dto.result.base.BaseResultDto;
import com.link2room.rodimus.dto.param.base.ExpressBaseDto;
import com.link2room.rodimus.dto.param.inside.CouponGiveOutInsideParamDto;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

/**
 * Created by LN on 2018/1/9
 */
@FeignClient("${spring.gateway.name}/${feign.rodimus}")
public interface L2RCouponFeignService {
    @RequestMapping(method = RequestMethod.POST, value = "/in/Coupons/putOutCoupon",consumes = MediaType.APPLICATION_JSON_VALUE)
    BaseResultDto<ExpressBaseDto> putOutCoupon(@RequestBody CouponGiveOutInsideParamDto paramDto)throws Exception;
}
